package algorithms;

import network.Vertex;

import java.util.Set;

public class GroupCloseness implements DeploymentAlgorithm{
    public int getCentrality(Set<Vertex> vertices) {
        int min = Integer.MAX_VALUE;
        for (Vertex v: vertices){
            if(v.getCloseness() < min)
                min = v.getCloseness();
        }
        return min;
    }
}
